/**
 * Copyright (c) 2012, Camelot and/or its affiliates. All rights reserved.
 * Camelot PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.camelot.ccr.system.dao;

import java.io.IOException;

import org.springframework.web.multipart.MultipartFile;

import com.camelot.ccr.global.dao.GenericDaO;
import com.camelot.ccr.global.util.Pager;
import com.camelot.ccr.system.persistence.Picture;

/**
 * <pre>
 * <图片>
 * </pre>
 * @author Liu Jun
 * @version V0.1, 2014-5-20 下午10:28:23
 */
public interface PictureDao extends GenericDaO<Picture, String> {
	
	/**
	 * <pre>
	 * <查询图片分页>
	 * </pre>
	 * @param curpage
	 * @param pageSize
	 * @param example
	 * @return
	 * @author Liu Jun, 2014-5-24 上午8:20:03
	 */
	public Pager<Picture> findPageList(int curpage, int pageSize, Picture example);
	
	/**
	 * <pre>
	 * <随机取出4个>
	 * </pre>
	 * @return
	 * @author Liu Jun, 2014-5-24 下午3:37:15
	 *//*
	List<Picture> findPictureSet();*/
	
	void savePicture(Picture picture , MultipartFile file) throws IllegalStateException, IOException;
	
}
